Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pr_labeler: add warning for porting_guides changes #514

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

gotmax23
Copy link
Collaborator

@gotmax23 gotmax23 commented Oct 4, 2023

This adds a warning message when PRs are created that edit
porting_guides by someone outside of the Release Management WG. These
files are automatically generated during the ansible release process and
should not be modified.

Fixes: #503

@gotmax23 gotmax23 added backport-2.15 Automatically create a backport for the stable-2.15 branch backport-2.14 Automatically create a backport for the stable-2.14 branch backport-2.13 Automatically create a backport for the stable-2.13 branch backport-2.16 Automatically create a backport for the stable-2.16 branch tooling This PR affects tooling (CI, pr_labeler, noxfile, linters, etc.) but not the docs builds themselves. pr_labeler Issue or PR in the pr_labeler triager bot labels Oct 4, 2023
@github-actions github-actions bot added the needs_triage Needs a first human triage before being processed. label Oct 4, 2023
@samccann samccann removed the needs_triage Needs a first human triage before being processed. label Oct 4, 2023
hacking/pr_labeler/data/porting_guide_changes.md Outdated Show resolved Hide resolved
hacking/pr_labeler/data/porting_guide_changes.md Outdated Show resolved Hide resolved
hacking/pr_labeler/label.py Outdated Show resolved Hide resolved
hacking/pr_labeler/label.py Outdated Show resolved Hide resolved
@gotmax23 gotmax23 force-pushed the porting_guide_changes branch from d6c5912 to ae2ec36 Compare October 18, 2023 02:40
@gotmax23 gotmax23 temporarily deployed to github-bot October 18, 2023 02:40 — with GitHub Actions Inactive
@gotmax23 gotmax23 added no_backport This PR should not be backported. devel only. merge_commit Use "Create a merge commit" when applying this PR and removed backport-2.15 Automatically create a backport for the stable-2.15 branch backport-2.14 Automatically create a backport for the stable-2.14 branch backport-2.13 Automatically create a backport for the stable-2.13 branch backport-2.16 Automatically create a backport for the stable-2.16 branch labels Oct 18, 2023
@gotmax23 gotmax23 temporarily deployed to github-bot October 18, 2023 02:46 — with GitHub Actions Inactive
@gotmax23
Copy link
Collaborator Author

Okay, this should be ready for another review.

The list of release managers are no longer hardcoded. Now that we have the Github app token set up, we can retrieve the list of release managers from @ansible/release-management-wg via the Github API 🎉.

This no longer applies to core porting guides; warnings are only printed for changes to community porting guides. There is deliberately no distinction between current and EOL changelogs.

Copy link
Contributor

@samccann samccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't really comment on the code but it all LGTM.

gotmax23 and others added 6 commits October 18, 2023 17:13
This adds a warning message when PRs are created that edit
porting_guides by someone outside of the Release Management WG. These
files are automatically generated during the ansible release process and
should not be modified.

Fixes: ansible#503
Instead of hardcoding the list of release managers, we can use the
Github API to retrieve the members of the
`@ansible/release-management-wg` team.
For example, patchback is not a release manager, but we still want it to
backport Porting Guide PRs.
@gotmax23 gotmax23 force-pushed the porting_guide_changes branch from 1e150ac to 95ece7e Compare October 18, 2023 17:14
@gotmax23 gotmax23 temporarily deployed to github-bot October 18, 2023 17:14 — with GitHub Actions Inactive
@gotmax23
Copy link
Collaborator Author

Thanks for the review, @samccann!

@gotmax23
Copy link
Collaborator Author

I just rebased on top of devel.

@gotmax23
Copy link
Collaborator Author

Note to self: I tagged this PR with merge_commit so it should be applied with a merge commit and not Squash and merge.

@gotmax23 gotmax23 merged commit fcaad98 into ansible:devel Oct 18, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge_commit Use "Create a merge commit" when applying this PR no_backport This PR should not be backported. devel only. pr_labeler Issue or PR in the pr_labeler triager bot tooling This PR affects tooling (CI, pr_labeler, noxfile, linters, etc.) but not the docs builds themselves.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add warning about porting_guide changes
3 participants